<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;

$form = ActiveForm::begin([
    'action' => ['position/create'],
    'method'=>'post',
    ]); ?>
    <?= $form->field($model, 'name') ?>
    <?= $form->field($model, 'age')?>
    <?= Html::submitButton('提交') ?>

  <?php ActiveForm::end() ?>

